package com.stox.charting.ui.swing.presenter;

import com.stox.charting.ui.swing.model.Axis;
import com.stox.charting.ui.swing.presenter.delegate.advisor.AxisSizeAdvisor;
import com.stox.charting.ui.swing.presenter.delegate.advisor.AxisThemeAdvisor;

public class AxisPresenter {

	private AxisThemeAdvisor themeAdvisor;
	private AxisSizeAdvisor sizeAdvisor;
	
	public void present(Axis axis){
		if(axis != null){
			sizeAdvisor.advise(axis);
			themeAdvisor.advise(axis);
		}
	}

	public AxisThemeAdvisor getThemeAdvisor() {
		return themeAdvisor;
	}

	public void setThemeAdvisor(AxisThemeAdvisor themeAdvisor) {
		this.themeAdvisor = themeAdvisor;
	}

	public AxisSizeAdvisor getSizeAdvisor() {
		return sizeAdvisor;
	}

	public void setSizeAdvisor(AxisSizeAdvisor sizeAdvisor) {
		this.sizeAdvisor = sizeAdvisor;
	}
	
}